export const rules = {
  number: [
    {
      required: true,
      message: '用户名必传!',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{5,11}$/,
      message: '请输入正确的手机号',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '请输入验证码!',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{4,10}$/,
      message: '请输入验证码',
      trigger: 'blur'
    }
  ]
}
